package com.wjk.kylin.modules.system.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wjk.kylin.modules.system.user.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  用户表 Mapper 接口
 * </p>
 *
 * @author wangjkui
 * @since 2020-06-01
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * 分页查询数据
     *
     * @param page
     * @param user
     * @param deptIds
     * @return
     */
    IPage<User> findPage(Page<User> page, @Param("user") User user,@Param("deptIds") List<String> deptIds);

}
